Skip to main content

Transform elements using an Agent

TRANSFORM_ELEMENTS_WITH_AGENT

Replace the elements in the topic using a prompt and the system message and other settings of the agent.

Parameters

  • agentName (string): The name of the agent.
  • topicText (string): The topic text, use $TOPIC_XHTML
  • css (string): The CSS selector, e.g. p > u
  • promptText (string): The prompt, e.g. "Correct spelling errors: "
  • trackChanges (bool): Track changes? True or false.

Returns

The transformed topic